package io.finer.erp.jeecg.stock.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import io.finer.erp.jeecg.stock.entity.ErpSysUser;
import io.lettuce.core.dynamic.annotation.Param;
public interface ErpUserMapper {
	@Select("select * from sys_user where id = #{userId}")
	List<ErpSysUser> getUser(@Param("userId")String userId);

	@Select("select * from sys_user where username = #{userId} limit 1")
	ErpSysUser getUserByUserName(String userId);

	@Select("select realname from sys_user where username=#{phone}")
	String getNameByPhone(@Param("phone")String phone);
}
